<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="test.php" method="post">
    <input type="checkbox" value="1" name="test" checked>测试1
    <input type="checkbox" value="2" name="test">测试2
    <input type="submit">
</form>
</body>
</html>